package exception;

/**
 * @author Huangjin
 * @version 1.0
 * describe:自定义异常
 *  通常定义那些不满足业务场景的异常
 *  自定义异常的几要素：
 *      1.类名要见名知意
 *      2.继承自Exception
 *      3.提供您所有类的构造器
 * @date 2023/3/10 10:29
 */
public class IllegalAgeException extends Exception{
    public IllegalAgeException() {
        super();
    }

    public IllegalAgeException(String message) {
        super(message);
    }

    public IllegalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeException(Throwable cause) {
        super(cause);
    }

    protected IllegalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
